#
# Be sure to run `pod lib lint YKOCTools.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'YKOCTools'
  s.version          = '0.1.0'
  s.summary          = 'A short description of YKOCTools.'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
TODO: Add long description of the pod here.
                       DESC

  s.homepage         = 'https://github.com/edwardyyk/YKOCTools'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'edwardyyk' => '534272374@qq.com' }
  s.source           = { :git => 'https://github.com/edwardyyk/YKOCTools.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '10.0'
  
  s.framework  = "Foundation","AVFoundation","Photos","Security"
  
  
  s.default_subspec = 'Base'
  
   
  s.subspec "Base" do |ss|
    
    ss.subspec 'UserDefault' do |sss|
      sss.source_files = 'YKOCTools/Classes/Base/UserDefault/*.{h,m}'
    end
    
    ss.subspec 'Task' do |sss|
      sss.source_files = 'YKOCTools/Classes/Base/Task/*.{h,m}'
    end
    
    ss.subspec 'Record' do |sss|
      sss.source_files = 'YKOCTools/Classes/Base/Record/*.{h,m}'
    end
    
    ss.subspec 'AudioManager' do |sss|
      sss.source_files = 'YKOCTools/Classes/Base/AudioManager/*.{h,m}'
    end
    
    ss.subspec 'StatusMachine' do |sss|
      sss.source_files = 'YKOCTools/Classes/Base/StatusMachine/*.{h,m}'
    end
    
    ss.subspec 'PushBannerManager' do |sss|
      sss.source_files = 'YKOCTools/Classes/Base/PushBannerManager/*.{h,m}'
    end
    
    ss.subspec 'ActionManager' do |sss|
      sss.source_files = 'YKOCTools/Classes/Base/ActionManager/*.{h,m}'
    end
    
    ss.subspec 'DesHelper' do |sss|
      sss.source_files = 'YKOCTools/Classes/Base/DesHelper/*.{h,m}'
    end
    
  end
   
  s.subspec 'Socket' do |ss|
    ss.dependency "SocketRocket"
    ss.source_files = 'YKOCTools/Classes/Socket/*.{h,m}'
  end
  
  
  
  
  s.subspec 'Cache' do |ss|
    ss.dependency "YYCache"
    ss.source_files = 'YK_BaseTools/Classes/Base/Cache/*.{h,m}'
  end
end
